Add bounds-of-thing-at-point property for 'number'
authorVisuwesh <visuweshm@gmail.com>
Sat, 9 Mar 2024 09:47:26 +0000 (15:17 +0530)
committerEli Zaretskii <eliz@gnu.org>
Thu, 14 Mar 2024 09:39:33 +0000 (11:39 +0200)
commitcb9ee24ea69be4a70f68cb2d564b23a55cb84216
tree9ef3b7132e1e739de158d2ae40f99b8014d88eb9
parenta60804ab954e0de73a80a217f677142176678465
Add bounds-of-thing-at-point property for 'number'

* lisp/thingatpt.el (thing-at-point-decimal-regexp)
(thing-at-point-hexadecimal-regexp): Extract regexps from...
(number-at-point): ...here.  Use them in 'number-at-point'.
(number): Add 'bounds-of-thing-at-point' property as
`forward-word' does not always return the right boundary,
e.g., in latex-mode buffers.  (Bug#69239)
lisp/thingatpt.el